/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.order.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单评论
 *
 * @author pigx code generator
 * @date 2023-11-29 14:51:38
 */
@Data
@TableName("order_comment")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单评论")
public class OrderComment extends Model<OrderComment> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "id")
	private Long id;

	/**
	 * 订单号
	 */
	@Schema(description = "订单号")
	private Long orderId;

	/**
	 * 用户ID
	 */
	@Schema(description = "用户ID")
	private Long shopUserId;

	/**
	 * 用户头像
	 */
	@Schema(description = "用户头像")
	private String headerUrl;

	/**
	 * 用户昵称
	 */
	@Schema(description = "用户昵称")
	private String nickName;

	/**
	 * 商品SpuId
	 */
	@Schema(description = "商品SpuId")
	private Long spuId;

	/**
	 * 商品Spu标题
	 */
	@Schema(description = "商品Spu标题")
	private String spuTitle;

	/**
	 * 商品SkuId
	 */
	@Schema(description = "商品SkuId")
	private Long skuId;

	/**
	 * sku名称
	 */
	@Schema(description = "sku名称")
	private String skuName;

	/**
	 * sku简称
	 */
	@Schema(description = "sku简称")
	private String skuShortName;

	/**
	 * 评论来源 1: 买家新增 2: 平台新增
	 */
	@Schema(description = "评论来源 1: 买家新增 2: 平台新增")
	private String commentSource;

	/**
	 * 销售价格
	 */
	@Schema(description = "销售价格")
	private Integer sellPrice;

	/**
	 * 购买数量
	 */
	@Schema(description = "购买数量")
	private Integer buyCount;

	/**
	 * 商品评分
	 */
	@Schema(description = "商品评分")
	private Integer goodsScore;

	/**
	 * 服务评分
	 */
	@Schema(description = "服务评分")
	private Integer serverScore;

	/**
	 * 物流评分
	 */
	@Schema(description = "物流评分")
	private Integer deliveryScore;

	/**
	 * 删除标记
	 */
	@TableLogic
	@Schema(description = "删除标记")
	private String delFlag;

	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 创建人
	 */
	@Schema(description = "创建人")
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	/**
	 * 修改时间
	 */
	@Schema(description = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	/**
	 * 更新人
	 */
	@Schema(description = "更新人")
	@TableField(fill = FieldFill.UPDATE)
	private String updateBy;

}
